home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group01b.txt
/
000069_icon-group-sender_Wed Jun 6 12:28:49 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2002-01-03
|
3KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id f56JROA14730
for icon-group-addresses; Wed, 6 Jun 2001 12:27:24 -0700 (MST)
Message-Id: <200106061927.f56JROA14730@baskerville.CS.Arizona.EDU>
From: Chris.D.Tenaglia@jci.com
Subject: Re: [Icon-Group] Funny result with strings
To: jsampson@indexes.u-net.com
Cc: icon-group@cs.arizona.edu
Date: Wed, 6 Jun 2001 09:59:20 -0500
X-MIMETrack: Serialize by Router on jwimkrs1.na.jci.com/NA/Johnson_Controls(Release 5.0.6a
|January 17, 2001) at 06/06/2001 10:15:22 AM
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 1789
Greetings,
I've been using this procedure since the 1980's with no
problems. It's my favorite and most used procedure.
#
# parse a string into a list with respect to a delimiter
#
procedure parse(line,delims)
static chars
chars := &cset -- delims
tokens := []
line ? while tab(upto(chars)) do put(tokens,tab(many(chars)))
return tokens
end
jsampson@indexes
.u-net.com To: icon-group@CS.Arizona.EDU
cc:
06/05/01 08:57 Subject: [Icon-Group] Funny result with strings
AM
Hello -
I have been trying out split.icn, a procedure contributed by Hamish Lawson
in 1996, which converts a string into a list using a cset of characters as
delimiter.
I have found that it will not work if the French colon ('|') is the
delimiter, although with other characters it will work. I cannot see
anything in the code to explain this. Are there characters that have
special
functions if they are within strings? I tried '\|' instead of '|' but this
did not work.
Regards
_John Sampson_